package com.zhifei.web.controller.fxxk;

import com.zhifei.common.utils.Result;
import com.zhifei.system.service.FxxkService;
import com.zhifei.system.service.PersonProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fxxk")
@Api(tags="纷享销客接口管理")
public class FxxkController {

    @Autowired
    private FxxkService fxxkService;
    @Autowired
    private PersonProjectService personProjectService;

    @GetMapping("/listOrderProduct")
    @ApiOperation("订单产品列表")
    public Result listOrderProduct(){
        return fxxkService.listOrderProduct();
    }

    @GetMapping("/listOrder")
    @ApiOperation("项目制人力订单列表")
    public Result listOrder(){
        return fxxkService.listOrder();
    }

    @GetMapping("/listDevOrder")
    @ApiOperation("定开订单列表")
    public Result listDevOrder(){
        return fxxkService.listDevOrder();
    }

    @GetMapping("/test")
    @ApiOperation("测试")
    public Result test(){
        return personProjectService.calc();
    }

}


